import { action, computed, observable } from "mobx";

/**
 * 用户信息
 */
export class User {
  @observable public user: string;

  constructor(user: string) {
    this.user = user;
  }
  @computed get userInfo() {
    return this.user + "userInfo";
  }
  @action public getUserInfo = () => {
    this.user= this.user+"sunshixiong"
  };
}
